<?php
/**
 * Created by PhpStorm.
 * User: xhw
 * Date: 2017-06-12
 * Time: 下午 15.03
 */

namespace app\hongyanche\controller;

class Message
{

    public function getlist()
    {
        $count = input('count');
        $filter['page'] = input('page');
        $res = model('message')->getList($filter,$count);
        return json($res);
    }

    public function read()
    {
     $message_id = input('message_id');
     $res = model('message')->read($message_id);
     return json($res);
    }

    public  function remove(){
        $message_id =input('message_id');
        $res = model('message')->remove($message_id);
        return json($res);
    }
}